package com.yun.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.github.dreamyoung.mprelation.JoinColumn;
import com.github.dreamyoung.mprelation.OneToMany;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 业务类型表(BussinessType)表实体类
 *
 * @author makejava
 * @since 2022-01-20 14:51:04
 */
@SuppressWarnings("serial")
@Data
@TableName("bussiness_type")
public class BussinessType extends Model<BussinessType> {
    //主键
    @TableId(value = "btid", type = IdType.AUTO)
    private Integer btid;
    //业务类型
    private String btname;
    //备注
    private String remark;
    //逻辑删除
    private String flag;
    //状态，正常0，异常1
    private String status;
    //创建时间
    private Date gmtCreate;
    //修改时间
    private Date gmtModified;


    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.btid;
    }
    }

